import { defHttp } from '/@/utils/http/axios';

enum Api {
  deviceInfo = '/device/index/index',
  originDataInfo = '/device/index/getOriginData',
}
/**
 * 查询设备仪表盘相关数据
 * @param params
 */
export const getDeviceInfo = (params) => defHttp.get({ url: Api.deviceInfo, params }, { isTransformResponse: false });

/**
 * 查询采集设备数据趋势
 * @param params
 */
export const getOriginDataInfo = (params) => defHttp.get({ url: Api.originDataInfo, params }, { isTransformResponse: false });
